<div class="proedit">
	<form action="<?php echo url('setting/company');?>" method="post" id="editForm">
		<table>
			<tr>
				<td width="80" align="right">公司名称:</td>
				<td align="left" class="magin">
					<input type="text"  name="info[companyName]" value="<?php echo $info['companyName'];?>" />
				</td>
			</tr>
			<tr>
				<td align="right">负责人:</td>
				<td align="left" class="magin"><input type="text"  name="info[persion]" value="<?php echo $info['persion'];?>" /></td>
			</tr>
			<tr>
				<td align="right">公司地址:</td>
				<td align="left" class="magin"><input type="text"  name="info[address]" value="<?php echo $info['address'];?>" /></td>
			</tr>
			<tr>
				<td align="right">公司电话:</td>
				<td align="left" class="magin"><input type="text"  name="info[tel]" value="<?php echo $info['tel'];?>" /></td>
			</tr>
			<tr>
				<td align="right">公司邮箱:</td>
				<td align="left" class="magin"><input type="text"  name="info[email]" value="<?php echo $info['email'];?>" /></td>
			</tr>
			<tr>
				<td align="right">公司网址:</td>
				<td align="left" class="magin"><input type="text"  name="info[site]" value="<?php echo $info['site'];?>" /></td>
			</tr>
			<tr>
				<td align="right">QQ:</td>
				<td align="left" class="magin"><input type="text"  name="info[site]" value="<?php echo $info['qq'];?>" /></td>
			</tr>
			<tr>
				<td align="right">图片:</td>
				<td align="left" class="magin"><?php echo fetch('uploadImg',array('images'=>isset($images)?$images:array(),'limit'=>1));?></td>
			</tr>
			<tr>
				<td align="right">公司简介:</td>
				<td align="left" class="magin"><textarea rows="4" cols="80" name="info[description]"><?php echo $info['description'];?></textarea></td>
			</tr>
			<tr>
				<td align="right">业务范围:</td>
				<td align="left" class="magin"><textarea id="ckeditor2" name="info[business]"><?php echo $info['business'];?></textarea></td>
			</tr>
			<tr>
				<td align="right">公司详情:</td>
				<td align="left" class="magin"><textarea id="ckeditor" name="info[info]"><?php echo $info['info'];?></textarea></td>
			</tr>
			<tr align="right"><td colspan="2"><input type="submit" value="修改" onClick="CKupdate();" id="catesub" /></td></tr>
		</table>
		<input type="hidden" name="id" value="<?php echo $info['id'];?>" />
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	CKEDITOR.replace('ckeditor',{
		filebrowserImageUploadUrl:"/admin.php/image/ckUpload.html",
	});
	CKEDITOR.replace('ckeditor2',{
		filebrowserImageUploadUrl:"/admin.php/image/ckUpload.html",
	});
	submitForm("#editForm",{
		dataType:'json',
		success:function(data){
				if(data.i=='ok'){
					alert("保存成功");
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
